//
//  FuckJSON.h
//  testPOSTJSONinOC
//
//  Created by caoyuan on 7/8/14.
//  Copyright (c) 2014 caoyuan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CYJSON : NSObject
/**
 *  dict --> json
 *
 *  @param dic dict
 *
 *  @return NSData(json str)
 */
+(NSData *)dicToJSON:(NSMutableDictionary*)dic;
/**
 *  json --> dict
 *
 *  @param json NSData
 *
 *  @return dict
 */
+(NSMutableDictionary*)JSONtoDic:(NSData*)json;

/**
 *  json --> array
 *
 *  @param json NSData
 *
 *  @return array
 */
+(NSMutableArray*)JSONtoArray:(NSData*)json;
@end
